import { HttpException } from '@nestjs/common';
import { HttpStatusMessages } from '../utils/http-message.util';

export class AppException extends HttpException {
  constructor(status: number, message: string = HttpStatusMessages[status]) {
    // 调用父类的构造函数
    super({ message, status }, status);
  }
}
